package com.erp.user.request;

import com.erp.common.request.BaseRequest;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Set;

/**
 * @author shensong
 * @program machining_system.v1.0.0
 * @description 权限
 * @date 2022/12/21 10:54:42
 */
@Data
public class PermitAddReq extends BaseRequest {

    private static final long serialVersionUID = 1L;

    /**
     * 所属上级
     */
    @NotNull(message = "pid not null")
    private Long pid;
    /**
     * 名称
     */
    @NotBlank(message = "name not blank")
    private String name;
    /**
     * 类型(1:菜单,2:目录,3:按钮)
     */
    @NotNull(message = "type not null")
    private Integer type;
    /**
     * 权限值
     */
    @NotBlank(message = "permissionValue not blank")
    private String permissionValue;
    /**
     * 访问路径
     */
    @NotBlank(message = "path not blank")
    private String path;
    /**
     * 组件路径
     */
    @NotBlank(message = "component not blank")
    private String component;
    /**
     * 图标
     */
    @NotBlank(message = "icon not blank")
    private String icon;
    /**
     * 状态(0:禁止,1:正常)
     */
    @NotNull(message = "status not null")
    private Integer status;
    /**
     * 排序
     */
    @NotBlank(message = "sort not blank")
    private String sort;
    /**
     * 备注
     */
    private String remark;
    /**
     * 角色表 角色ID
     */
    @NotNull(message = "roleIds not null")
    private Set<Long> roleIds;
}
